package com.ailot.cloud.upms.api.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ailot.cloud.upms.api.mapper.SysDictValueMapper;
import com.ailot.cloud.upms.api.service.SysDictValueService;
import com.ailot.cloud.upms.common.entity.SysDictValue;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 字典项
 *
 * @author
 */
@Service
@AllArgsConstructor
public class SysDictValueServiceImpl extends ServiceImpl<SysDictValueMapper, SysDictValue> implements SysDictValueService {

    /**
     * 删除字典项
     *
     * @param id 字典项ID
     * @return
     */
    @Override
    public Boolean removeDictItem(String id) {
        return this.removeById(id);
    }

    /**
     * 更新字典项
     *
     * @param item 字典项
     * @return
     */
    @Override
    public Boolean updateDictItem(SysDictValue item) {
        return this.updateById(item);
    }
}
